<?php
$this->widget('bootstrap.widgets.TbBreadcrumbs', array(    'links'=>array('Thay đổi mật khẩu'),));
?>
<div class="form" style="width: 500px; margin:auto;">

<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
	'id'=>'user-form',
	//'enableAjaxValidation'=>true,
	'enableClientValidation'=>true,
)); ?>
<?php $box = $this->beginWidget('bootstrap.widgets.TbBox', array(	'title' => 'Thay đổi mật khẩu',	'headerIcon' => 'icon-th-list',	// when displaying a table, if we include bootstra-widget-table class	// the table will be 0-padding to the box	'htmlOptions' => array('class'=>'bootstrap-widget-table')));?>
<div style="margin:20px">
	<div class="row">
		<?php echo $form->labelEx($model,'oldpassword'); ?>
		<?php echo $form->passwordField($model,'oldpassword',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'oldpassword'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->passwordField($model,'password',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'password'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'confirm'); ?>
		<?php echo $form->passwordField($model,'confirm',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'confirm'); ?>
	</div>

<p class="note">Thông tin bắt buộc <span class="required">*</span></p>

	<div class="row buttons">
		<?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit', 'label'=>'Đồng ý', 'type'=>'inverse','htmlOptions'=>array('id'=>'submit'))); ?>
	</div>

<?php $this->endWidget(); ?><?php $this->endWidget();?>
</div></div>